package com.myCommunity.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


public class Forum {
	
	public List<Forum> getChildren() {
		return children;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	private int id ;
	private String name ;
	private String description;
	private Integer parentId;
	private List<Forum> children = new ArrayList<Forum>();

	public Forum(int id, String name, String description, Integer parentId) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.parentId = parentId;
	}
	
	public Forum() {
		// TODO Auto-generated constructor stub
	}
	
	
}
